package com.chentf.behavioral.strategy.code.b;

public class Client {

    public static void main(String[] args) {
        Order order = new Order(new PercentageDiscountStrategy());
        double discount = order.calculateDiscount();
        System.out.println("折扣金额: " + discount);

        order = new Order(new FixedAmountDiscountStrategy());
        discount = order.calculateDiscount();
        System.out.println("折扣金额: " + discount);
    }
}
